package cn.xfdzx.android.apps.shop.contract;

import java.util.HashMap;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.IdCardBeen;
import cn.xfdzx.android.apps.shop.bean.LicenseImgBeen;
import cn.xfdzx.android.apps.shop.bean.Ruzhu_StepBean;
import cn.xfdzx.android.apps.shop.bean.Store_ruzhuBean;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface Store_InfoContract {
    interface Model {
        Flowable<Store_ruzhuBean> getRuzhuState(HashMap<String,Object> map);
        Flowable<Ruzhu_StepBean> getStepRuzhu(String step);
        Flowable<LicenseImgBeen> licenseImg(String licenseImg);
        Flowable<IdCardBeen> idCardSubmit(String infoImg, String emblemImg );
        Flowable<IdCardBeen> idCardSubmits(String infoImg, String emblemImg );

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void getStateType(Store_ruzhuBean bean);

        void getRuzhuStep(Ruzhu_StepBean bean);

        void oneLicenseImgSuccess(LicenseImgBeen bean);
        void onIdCardSuccess(IdCardBeen bean);
        void onIdCardSuccessguanli(IdCardBeen bean);

    }

    interface Presenter {

        void getState_Ruzhu(HashMap<String,Object> s);
        void getStep_Ruzhu(String s);
        void licenseImg(String licenseImg);
        void idCardSubmit(String infoImg,String emblemImg );
        void onIdCardSuccessguanli(String infoImg,String emblemImg );
    }
}
